package com.rockcent.mall.lib.repository;

import com.rockcent.mall.lib.domain.MallFundFlow;
import com.rockcent.mall.lib.domain.enumclass.FundTransactionFlow;
import com.rockcent.mall.lib.dto.MallFundFlowDto;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by oyhk on 14-6-22.
 */
@Repository
public interface MallFundFlowRepository extends JpaRepository<MallFundFlow, Long>, JpaSpecificationExecutor, MallFundFlowRepositoryCustom {

    List<MallFundFlowDto> findByParentIdAndMallIdAndTransactionFlow(Long id, Long id1, FundTransactionFlow split);
}
